package app.tool;

import org.rygh.core.db.table.DbTable;
import org.rygh.core.db.tuple.IdentifiableModel;

import wsi.script.AppConfig;
import app.App;

public class prepareDb extends App {

	public static void main(String[] args) {
		init();
		AppConfig.init();

		// prepare(WebCacheModel.class);
		// prepare(TemporaryTuple.class);

		bye();
	}

	static <T extends IdentifiableModel> void prepare(Class<T> klass) {
		DbTable<T> t = new DbTable<T>(klass);

		t.create();
		t.createIndex();
	}

}
